package dao

import (
	"context"
	"ruoyi-go-echo-ddd/internal/domain/model"
	"ruoyi-go-echo-ddd/internal/infrastructure/http/request"
)

// SysUserRoleDao 用户角色信息Dao接口
type SysUserRoleDao interface {
	Insert(ctx context.Context, sysUserRole *model.SysUserRole) (*model.SysUserRole, error)
	Update(ctx context.Context, sysUserRole *model.SysUserRole) (int64, error)
	BatchInsert(ctx context.Context, list []*model.SysUserRole) ([]int64, error)
	SelectById(ctx context.Context, id int64) (*model.SysUserRole, error)
	SelectPage(ctx context.Context, param *request.CommonPageParam) ([]*model.SysUserRole, int64, int64, error)
	BatchDelete(ctx context.Context, ids []any) (int64, error)
	DeleteByUserId(ctx context.Context, userId int64) (int64, error)
	DeleteByUserIdList(ctx context.Context, userIds []int64) (int64, error)
}
